package com.xiangge.domain;

abstract class A{
    public abstract void showA();
}
abstract class B extends A{
    public abstract void showB();
}
abstract class C extends B{
    public abstract void showC();
}

public class AbstractABC extends C{
    private int numa;
    private int numb;
    private int numc;

    public AbstractABC() {
    }
    public AbstractABC(int numa, int numb, int numc) {
        this.numa = numa;
        this.numb = numb;
        this.numc = numc;
    }

    public int getNuma() {
        return numa;
    }

    public void setNuma(int numa) {
        this.numa = numa;
    }

    public int getNumb() {
        return numb;
    }

    public void setNumb(int numb) {
        this.numb = numb;
    }

    public int getNumc() {
        return numc;
    }

    public void setNumc(int numc) {
        this.numc = numc;
    }

    @Override
    public void showA() {
        System.out.println("A类中numa：" + numa);
    }

    @Override
    public void showB() {
        System.out.println("B类中numb：" + numb);
    }

    @Override
    public void showC() {
        System.out.println("C类中numc：" + numc);
    }
}
